#include <iostream>
#include <stdlib.h>

using namespace std;

#include "Token.h"
#include "AST.h"

int main(int argc, char *argv[])
{
    Token *plus = new Token(Token::PLUS, "+");
    Token *one = new Token(Token::INT, "1");
    Token *two = new Token(Token::INT, "2");
    AST root(plus);
    root.add_child(AST(one));
    root.add_child(AST(two));
    cout << "1+2 tree: " << root.to_string_tree() << endl;
    AST list;
    list.add_child(AST(one));
    list.add_child(AST(two));
    cout << "1 and 2 in list: " << list.to_string_tree() << endl;
    system("pause");
    return 0;
}
